<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::get( 'index','Article/index');
Route::get( 'article','Article/index');
Route::get( 'detailed/:id','Article/detailed');
Route::get( 'thinnkphparticle','Article/typeArticle?type=ThinkPHP');
Route::get( 'nodejsarticle','Article/typeArticle?type=Node.js');
Route::get( 'wxarticle','Article/typeArticle?type=微信');
Route::get( 'alipayarticle','Article/typeArticle?type=支付宝');
Route::get( 'linuxarticle','Article/typeArticle?type=linux');
Route::get( 'login','Login/login');
Route::get( 'qqlogin','Login/qqLogin');
Route::get( 'register','Login/register');
Route::get( 'loginout','Login/loginOut');
Route::get( 'labelArticle/:label','Article/labelArticle');
Route::get( 'search/','Article/searchArticle');
Route::get( 'qqLoginCallBack/','Login/qqLoginCallBack');
Route::get( 'wbLoginCallBack/','Login/wbLoginCallBack');


Route::post( 'reply_comment','Article/replyComment');
Route::post( 'useraddcomment','Article/addComment');
Route::post( 'uploadimg','Upload/uploadImg');
Route::post( 'register','Login/register');
Route::post( 'note','Login/note');
Route::post( 'login','Login/login');
Route::post( 'islogin','Login/isLogin');
Route::post( 'getaddress','Home/Demo/getAddress');
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
];
